package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Exchange;
import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExchangeMapper extends BaseMapper<Exchange> {

    List<User> selectAllLinkman();

    List<Exchange> chattingRecordsBySenderAndRecipient(String sender, String recipient);

    void senderExchange(Exchange exchange);

    List<Exchange> senderUnreadQuantity(String sender);

    void updateUnread(String sender, String recipient);
}
